from loguru import logger
import check
import config
import tools


if __name__ == '__main__':

    try:
        logger.debug(f'----版本：{config.version_s}------')

        tools.save_config()

        tools.save_voices_role_list()
        check.check_original_video()  # 检查文件夹 把原视频路径赋值到config
        check.check_version()
        tools.run_with_index()

    except Exception as e:
        input(f'发生以下错误：\n  {e}')
    finally:
        input('回车退出')
